Polymorphic Contracts
نویسندگان
چکیده
Manifest contracts track precise properties by refining types with predicates—e.g., {x :Int | x > 0} denotes the positive integers. Contracts and polymorphism make a natural combination: programmers can give strong contracts to abstract types, precisely stating preand post-conditions while hiding implementation details—for example, an abstract type of stacks might specify that the pop operation has input type {x :α Stack | not (empty x )}. We formalize this combination by defining FH, a polymorphic calculus with manifest contracts, and establishing fundamental properties including type soundness and relational parametricity. Our development relies on a significant technical improvement over earlier presentations of contracts: instead of introducing a denotational model to break a problematic circularity between typing, subtyping, and evaluation, we develop the metatheory of contracts in a completely syntactic fashion, omitting subtyping from the core system and recovering it post facto as a derived property.
منابع مشابه
Modelling and Experimental Testing of Asymmetric Information Problems in Lease and Hire Contracts (Based on Contract Theory)
This article aims to study lease and hiring contract in the Iranian-Islamic setting and analyze the asymmetric information problem in these contracts. For doing this, we study the characteristics of lease and hiring contracts in Iran (real world experimental characteristics that recognized in other studies), using library method, then we mathematically model different aspects of asymmetric info...
متن کاملInvestigating and Comparing the Position of Force Majeure and the Impossibility of Contracts in Iranian Oil Contracts
The effect of the two legal entities of force majeure and the impossibility (frustration) of the contract is almost similar, and that is the impossibility of fulfilling the obligation or contract. However, these two theories, although are very similar in practice, have some differences that distinguish them from each other; Initially, the question was what is the nature of the two institutions ...
متن کاملبررسی تطبیقی شرایط عقود اسلامی و قراردادهای پشتیبانی بانکداری اسلامی (مورد مطالعه: بانک شهر)
Islam emphasizes all social issues, especially healthy economic relations. What has led to the need to examine and address the issues of contracts in Islam and the contracts of support in Islamic banking, is the existence of various contracts in the society. In this research, it is tried to examine the compatibility of the contracts of support in Islamic banking with the contractual and religio...
متن کاملO-14: General Governing Rules of ART Contracts Involving Third Parties
Background: ART contracts involving third parties have been created while clinical reproductive treatments are globally widespread. Iran is pioneer in applying these treatments in middle-east due to shii’at jurisprudence prescribing them. This key role in region, has raised Iranian jurists’ responsibility in developing a legal system regarding administration of ART. The most significant part of...
متن کاملInternational Natural Gas sale and Transportation Contracts and the point of contractual risk transfer upon CISG (Vienna1980)
Determining where the risk of contractual responsibility transfers in international sale and transportation of gas contracts is very important in these wells and parties’ of these contracts, additionally the way of distributing the risk and the point it transfers influences contractual and financial position of the contract parties’.In transportation projects that natural gas is carried by pip...
متن کاملذخیره در منابع من
با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید
عنوان ژورنال:
دوره شماره
صفحات -
تاریخ انتشار 2011